/* 如果屏幕超出 750px 则按 750px 设置 */
@media screen and (min-width: 750px) {
  html {
    font-size: 75px !important;
  }
}

/* 如果屏幕小于 320px 则按 320px 设置 */
@media screen and (max-width: 320px){
  html {
    font-size: 32px !important;
  }
}

body {
  min-width: 320px;
  max-width: 750px;
  width: 10rem;
  margin: 0 auto;
  line-height: 1.5;
  font-family: Arial, Helvetica, sans-serif;
  background: #f2f2f2;
}

a {
  text-decoration: none;
}

input {
  border: 0;
  outline: none;
}

input::-webkit-search-cancel-button {
  margin-right: .333333rem;
}

.search {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 10rem;
  height: 1.173333rem;
  background-color: #ffc001;
}

.search-classify {
  width: .586667rem;
  height: .933333rem;
  margin: .16rem .32rem;
  background: url(../img/classify2x@36_60.png) no-repeat;
  background-size: .48rem .8rem;
}

.search-login {
  width: .586667rem;
  height: .933333rem;
  margin: .16rem .32rem;
  background: url(../img/login2x@36_60.png) no-repeat;
  background-size: .48rem .8rem;
}

.search-bar {
  flex: 1;
}

.search-bar input {
  width: 100%;
  height: .88rem;
  border-radius: .44rem;
  background-color: #fff2cc;
  margin-top: .133333rem;
  font-size: .333333rem;
  padding-left: .733333rem;
  color: #757575;
}

.banner {
  width: 10rem;
  height: 4.906667rem; 
}

.banner img {
  width: 100%;
  height: 100%;
}

.ad {
  display: flex;
}

.ad a {
  flex: 1;
}

.ad a img {
  width: 100%;
}

.nav {
  width: 10rem;
}

.nav a {
  float: left;
  width: 2rem;
  height: 1.893333rem;
  text-align: center;
}
     
.nav a [class^="nav-img"] {
  width: 1.093333rem;
  height: 1.093333rem;
  background-image: url(../img/nav_sprites.png);
  background-repeat: no-repeat;
  background-size: 1.093333rem auto;
  margin: auto;
}
.nav-img-miaosha {
  background-position: 0 0;
}
.nav-img-chaoshi {
  background-position: 0 -1.093333rem;
}
.nav-img-pingou {
  background-position: 0 -2.186667rem;
}
.nav-img-shuma {
  background-position: 0 -3.28rem;
}
.nav-img-jiadian {
  background-position: 0 -4.373333rem;
}
.nav-img-shuiguo {
  background-position: 0 -5.466667rem;
}
.nav-img-huiyuan {
  background-position: 0 -6.56rem;
}
.nav-img-qiandao {
  background-position: 0 -7.653333rem;
}
.nav-img-lingquan {
  background-position: 0 -8.746667rem;
}
.nav-img-gengduo {
  background-position: 0 -9.84rem;
}

.nav-title {
  font-size: .293333rem;
  color: #333;
}

.tab {
  margin: auto;
  display: flex;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 10rem;
  height: 1.333333rem;
  background-color: #fff;
}

.tab a {
    flex: 1;
    width: 2rem;
    height: 100%;
    text-align: center;
  }

.tab a [class^="tab-img"] {
  margin: auto;
  margin-top: .133333rem;
  width: .64rem;
  height: .64rem;
  background-image: url(../img/tab_sprites.png);
  background-repeat: no-repeat;
  background-size: .64rem;
}

.tab-img-shouye {
  background-position: 0 0;
}
.tab-img-fenlei {
  background-position: 0 -0.64rem;
}
.tab-img-paihang {
  background-position: 0 -1.28rem;
}
.tab-img-cart {
  background-position: 0 -1.92rem;
}
.tab-img-wode {
  background-position: 0 -2.56rem;
}

.tab-title {
  font-size: .266667rem;
  color: #000;
}

.tab-title-shouye {
  font-weight: 700;
}